    <div align="right"  style="margin-bottom:10px">
        <button class="btn btn-primary" data-toggle="modal" data-target=".parent-type">新增</button>
    </div>
    <div class="well well-lg" style="margin-bottom: 0px;">
    <table class="table table-bordered" style="margin-bottom: 0px;">
      <tr class="info" width="100%">
        <th width="7%">序号</th>
        <th width="28%">项目名称</th>
        <th width="15%">项目编码</th>
        <th>描述</th>
        <th width="8%">操作</th>
      </tr>
        <!--/*@thymesVar id="dicts" type="java.util.List<com.weirong.smartvault.backservice.entity_model.DictModel>"*/-->
    <tr th:each="dict,iter:${dicts}">
        <td th:text="${iter.index}">1</td>
        <td>
            <!--/*@thymesVar PagesIndexages" type="com.weirong.smartvault.backservice.controller.fragment_entity.PagesIndex"*/-->
            <span th:utext="${dict.getRetract()}"></span><a th:href="@{${url}(page=${pages.getIndex()},marks=${dict.getThisMarks()})}"><span th:if="${dict.hasSons()}" th:class="${dict.isOpened()}?'glyphicon glyphicon-minus':'glyphicon glyphicon-plus'"></span></a><span th:text="${dict.getName()}">设备大类</span></td>
        <td th:text="${dict.getCode()}">equip_main_type</td>
        <td th:text="${dict.getDescription()}">设备的分类描述</td>
        <td><a href="#" data-toggle="modal" th:attr="data-target=${'.child-type'+dict.getId()}">增加子类</a></td>
      </tr>
  </table>
    <div align="center" th:replace="fragment/pageIndex::pageIndex"></div>
    </div>

<div class="modal fade parent-type" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">新增项目大类</h4>
            </div>
            <form method="post">
            <div class="modal-body">
                <table style="width: 800px;">
                    <tr width="100%">
                        <td width="10%">&nbsp;</td><td width="20%">项目名称</td><td><input name="name" type="text" placeholder="请输入项目名称" class="form-control" /></td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td><td>项目编码</td><td><input name="code" type="text" placeholder="请输入项目编码" class="form-control" /></td>
                    </tr>
                    <tr>
                        <td colspan="4">&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td><td>项目描述</td><td><input name="description" class="form-control" rows="3"/></td>
                    </tr>
                </table>
                <input type="hidden" name="parentId" value="-1"/>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <input type="submit" class="btn btn-primary" value="保存"/>
            </div>
            </form>
        </div>
    </div>
</div>
    <!--/*@thymesVar id="dicts" type="java.util.List<com.weirong.smartvault.backservice.entity_model.DictModel>"*/-->
<div th:each="dict,iterstat:${dicts}">
<div th:class="|modal fade child-type${dict.getId()}|" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title"  th:text="${'增加 '+dict.getName()+' 子类'}">新增项目子项</h4>
            </div>
            <form method="post">
                <div class="modal-body">
                    <table style="width: 800px;">
                        <tr width="100%">
                            <td width="10%">&nbsp;</td><td width="20%">项目名称</td><td><input name="name" type="text" placeholder="请输入项目名称" class="form-control" /></td>
                        </tr>
                        <tr>
                            <td colspan="4">&nbsp;</td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td><td>项目编码</td><td><input name="code" type="text" placeholder="请输入项目编码" class="form-control" /></td>
                        </tr>
                        <tr>
                            <td colspan="4">&nbsp;</td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td><td>项目描述</td><td><input name="description" class="form-control" rows="3"/></td>
                        </tr>
                    </table>
                    <input type="hidden" name="parentId" th:value="${dict.getId()}"/>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <input type="submit" class="btn btn-primary" value="保存"/>
                </div>
            </form>
        </div>
    </div>
</div>
</div>

